const c=require("../controllers/merchant.server.controller")

function fn(app){
	app.route("/merchant/mStatus/:mStatus/page/:pageNo")
	.get(c.findRegistMerchantsByPage);

	app.route("/merchant/:mId/setStatus/:mStatus")
	.put(c.updateMerchantStatus);

	app.route("/LowMerchant/page/:pageNo")
	.get(c.findLowScoreMerchantsByPage);

	app.route("/merchant/mTel")
	.get(c.findAllTels)

	app.route("/merchant/mTel/:mTel")
	.get(c.findMerchantByTel)

	// app.route("/merchant/mStatus/:mStatus")
	app.route("/ita_project4_admin/merchant/get/status")
	//ws,client端获取所有审核通过的商家id
	.get(c.findAllPassId)

	//ws,merchant端获取本商家状态
	app.route("/ita_project4_admin/merchant/get/status/:mId")
	.get(c.findOneMerchantStatus)
}


module.exports=fn;